# print("hello", end="")
# print("hello", end="\n")
# print("world")
#
# print("*" * 10)
# print("hello")
# print("world")
#
# print("*" * 10)
# print("hello", end="|")
# print("world")

# def fn4(a):
#     a[0] = 30
#     print('a =',a,id(a))
#
# c = [1,2,3]
# d = [1,2,3]
# fn4(c)
# print(c)
# print(d)
# # fn4(c.copy())

# def sum(*a) :
#     # a = (.,.,.)
#     result = 0
#     for i in a :
#         result += i
#     print("result=" + str(result))
# sum(1, 2,3)


# li = [3,1,3]
# li = (3,1,4)
# li = "HELLO"
# for i in li:
#     print(i)
#
# def fn2(a,b,*c):
#     print('a =',a)
#     print('b =',b)
#     print('c =',c)
#
# fn2(1, 3, 2, 4)


# # def print2(*args, sep, end, file):
# def print2(*args, sep=' ', end='\n', file=None):
#     print(args)
#
# print2(1,2,3)
# # print2(1,2,3, sep=" ", end="\n", file=None)


# def fn4(a,b,c):
#     print('a =',a)
#     print('b =',b)
#     print('c =',c)
#
# # 创建一个元组
# # t = (10,20,30)
# d = {'a':100,'b':200,'c':300}
# # fn4(t[0],t[1],t[2])
# fn4(**d)

def sum(*nums):
    # 定义一个变量，来保存结果
    result = 0
    # 遍历元组，并将元组中的数进行累加
    for n in nums:
        result += n
    return result


a = sum(1, 4, 7)
a += 10
print(a)


#
# def fn(num1, num2):
#     result = 100 + num1 + num2
#     # return result
#     break
# ret = fn(10, 20)
# # ret = 130
#
# # ret += 10
# print(ret)

def fn4():
    for i in range(5):
        if i == 3:
            # return
            # break
            continue
        print(i)
    print("循环结束！")


fn4()
